/* 文件夹展开视图背景遮罩 */
.folder-view-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 文件夹展开视图样式 */
.folder-expanded-view {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  width: 800px;
  height: 650px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1000;
}

.folder-view-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
}

.folder-title-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.folder-title-container h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.folder-file-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.folder-expanded-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 550px;
}

/* 搜索栏 */
.folder-search-bar {
  position: relative;
}

.folder-search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.folder-search-input:focus {
  outline: none;
  border-color: #10b981;
}

.folder-search-bar::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 14px;
}

/* 分类标签 */
.folder-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.folder-category-tab {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: white;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.folder-category-tab:hover {
  border-color: #10b981;
  color: #10b981;
}

.folder-category-tab.active {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.folder-category-tab.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 统计信息 */
.folder-statistics {
  margin: 8px 0;
}

.folder-stats-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.folder-stat-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
}

.folder-stat-card:hover {
  background: #f3f4f6;
  border-color: #10b981;
}

.folder-stat-card.active {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #10b981;
}

.folder-stat-icon {
  font-size: 14px;
}

.folder-stat-text {
  color: #6b7280;
  font-weight: 500;
}

.folder-stat-card.active .folder-stat-text {
  color: #10b981;
}

/* 文件列表 */
.folder-files-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.folder-files-header {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.folder-files-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 350px;
}

.folder-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.folder-file-item:hover {
  background: #f9fafb;
  border-color: #10b981;
}

.folder-file-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.folder-file-info {
  flex: 1;
  min-width: 0;
}

.folder-file-name {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-file-details {
  display: flex;
  gap: 12px;
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
}

.folder-file-size,
.folder-file-type,
.folder-file-time {
  white-space: nowrap;
}

/* 空状态 */
.folder-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #6b7280;
}

.folder-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.folder-empty-text {
  font-size: 14px;
  text-align: center;
}

/* 更多文件提示 */
.folder-more-files {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  color: #6b7280;
  font-size: 12px;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
}

.folder-more-icon {
  font-size: 16px;
}

/* 滚动条样式 */
.folder-files-list::-webkit-scrollbar {
  width: 6px;
}

.folder-files-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.folder-files-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.folder-files-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
